]> dgit.raspbian.org Git - gnome-shell.git/commit
shell-global: Only set the scale factor if get_setting succeeded
authorJasper St. Pierre <jstpierre@mecheye.net>
Sat, 22 Feb 2014 23:00:57 +0000 (18:00 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sun, 23 Feb 2014 15:54:32 +0000 (10:54 -0500)
commit29addc499ca0f8dc5bf9cf6d18eaaa01a5c2b985
treed7458e6ca4c963d20e2c480a5371f56cd0d675e4
parentcaa98de58184fcfc2d83bb6cfb3406869039d31b
shell-global: Only set the scale factor if get_setting succeeded

If gdk_screen_get_setting fails, like if it's running without XSettings,
then the GValue will have a value of 0. A lot of code tries to divide by
the scale factor. This produces NaN, and combined with the fact that NaN
is "leaky", we very quickly end up spinning out of control.
src/shell-global.c